import request from '@/utils/request'

// 查询集中稽核人员名单列表
export function listCAuditor(data) {
  return request({
    url: '/audit/cAuditor/list',
    method: 'post',
    data
  })
}

// 查询集中稽核人员名单详细
export function getCAuditor(id) {
  return request({
    url: '/audit/cAuditor/' + id,
    method: 'get'
  })
}

// 查询用户
export function getCAuditorUser(data) {
  return request({
    url: '/audit/cAuditor/user',
    method: 'post',
    data
  })
}

// 新增集中稽核人员名单
export function addCAuditor(data) {
  return request({
    url: '/audit/cAuditor',
    method: 'post',
    data: data
  })
}

// 修改集中稽核人员名单
export function updateCAuditor(data) {
  return request({
    url: '/audit/cAuditor',
    method: 'put',
    data: data
  })
}

// 删除集中稽核人员名单
export function delCAuditor(id) {
  return request({
    url: '/audit/cAuditor/' + id,
    method: 'delete'
  })
}

// 查询稽核人员名单
export function getCAuditorList() {
  return request({
    url: '/audit/cAuditor/auditor',
    method: 'post'
  })
}

